<?php

/* @var $this \yii\web\View */
/* @var $content string */

use yii\helpers\Html;
use app\assets\AppAsset;

AppAsset::register($this);
$base = Yii::$app->request->baseUrl;
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>
<div class="wrap" style="overflow: hidden;">
    <div style="margin-right: auto;margin-left: auto">
        <div class="tab" style="text-align:center;height:45px;background: #ffffff">
            <a href="http://mp.weixin.qq.com/s?__biz=MzA5MDIwNTE0Mw==&mid=2649399234&idx=1&sn=0b77d456802c426493639d1e4a30acba&scene=0#wechat_redirect"><span style="color: orange;position:absolute;left: 2%;top: 11px;font-size: 17px;">关注</span></a>
            <span style="margin-left:31px;line-height:45px;font-size: 20px;color: #4A4A4A"><?= Html::encode($this->title) ?></span>
            <!--            <a href="/distribution/basic/web/index.php/web/out" style="margin-top:13px;margin-right:10px;float: right;">tuichu</a>-->
            <img onclick="goToHome()" style="margin-top:13px;margin-right:10px;float: right;" src="<?= $base ?>/images/back_icon.png"/>
            <!--            <a href="/distribution/basic/web/index.php/web/my-address" style="float: right;margin-right: 10px;margin-top: 13px;">地址管理</a>-->
            <div style="height: 1px;background: #e5e5e5"></div>
        </div>
        <?= $content ?>
    </div>
</div>

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
<script>
    function goToHome() {
        window.location.href = '../web/home';
    }
</script>